#include "Singleton.h"

#include <iostream>

using std::cout;
using std::endl;

Singleton* Singleton::_instance = nullptr;

Singleton::Singleton()
{
	cout << "The instance has been created." << endl;
}

Singleton* Singleton::Instance()
{
	if (!_instance)
	{
		_instance = new Singleton;
	}

	return _instance;
}